package com.twu.biblioteca;

import com.twu.biblioteca.commands.*;
import com.twu.biblioteca.data_structures.Library;

import java.io.PrintStream;
import java.util.LinkedHashMap;

public class StateWithoutUser implements State {
    private LinkedHashMap<String, Command> menu;

    public StateWithoutUser(Library library, PrintStream ps, UserQueryHandler query){
        menu = new LinkedHashMap<String, Command>();

        menu.put("View all books", new ViewBooksCommand(library));
        menu.put("Reserve a book", new NullUserCommand(ps));
        menu.put("Check membership", new NullUserCommand(ps));
        menu.put("View all movies", new ViewMoviesCommand(library, ps));
        menu.put("Login", new LoginCommand(library,query,ps));
        menu.put("Quit", new QuitCommand(ps));
    }

    public LinkedHashMap<String, Command> getMenu(){
        return menu;
    }
}
